using Ant.Dto.StoreDto;
using Ant.EntityFrameworkCore.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Ant.DbServiceInterface
{
    public interface IStoreDataService
    {
        int AddStore(StoreInfo addStore);
        bool AddCommodityType(CommodityType comType);
        bool AddCommodity(CommodityInfo com);
        bool UpdateCommodity(int storeID,UpdataCommodityDto dto);


        Task<ICollection<StoreInfo>> GetAllStore();
        Task<ICollection<CommodityType>> GetCommodityType(int storeID);
        Task<ICollection<CommodityInfo>> GetCommodity(int storeID,int pageSize,int current,string key);
        Task<ICollection<CommodityInfo>> SearchCommodityForStore(int storeID, string key);
        Task<ICollection<CommodityInfo>> GetHotCommidit(int storeID);
        Task<ICollection<CommodityInfo>> GetCommodity(int storeID);
    }
}